package hottargui.domain;

/** FinishGameException is thrown when the game are finshed,
 *  and i shows who the winner is.
 */

public class FinishGameException extends RuntimeException {
	private static final long serialVersionUID = 65431234678898995L;
	PlayerColor pc;

	public FinishGameException(PlayerColor p) {
		super( ""+p );
		pc = p;
	}
	public PlayerColor getWinner(){
		return pc;
	}
}
